// pages/set/set.js
var about = '../about/about'
var help = '../help/help'
var pass = '../newpass1/newpass1'
var app = getApp()
Page({
  data:{
    set: [
      {
        link: "pass",
        text:"修改密码",
        tap: "pass"
      },
      {
        link: "help",
        text:"帮助与反馈",
        tap: "help"
      },
      {
         link: "about",
        text:"关于我们",
        tap: "our"
      },
    ],
  },
  about: function() {
      wx.navigateTo({
        //传递参数方式向get请求拼接参数一样
        url:  about + '?phone=18939571&password=1992',
        success: function(res) {
          console.log(res)
        },
        fail: function(err) {
          console.log(err)
        }

      })
  },
  pass: function() {
      wx.navigateTo({
        //传递参数方式向get请求拼接参数一样
        url:  pass + '?phone=18939571&password=1992',
        success: function(res) {
          console.log(res)
        },
        fail: function(err) {
          console.log(err)
        }

      })
  },
  help: function() {
      wx.navigateTo({
        //传递参数方式向get请求拼接参数一样
        url:  help + '?phone=18939571&password=1992',
        success: function(res) {
          console.log(res)
        },
        fail: function(err) {
          console.log(err)
        }

      })
  },
  onLoad:function(options){
    // 页面初始化 options为页面跳转所带来的参数
  },
  onReady:function(){
    // 页面渲染完成
  },
  onShow:function(){
    // 页面显示
  },
  onHide:function(){
    // 页面隐藏
  },
  onUnload:function(){
    // 页面关闭
  }
})